import React, { Component } from "react";
import { NavLink } from "react-router-dom";
export default class Mynavlink extends Component {
  render() {
    // console.log(this.props);
    // {...this.props} 解构出调用组件时传入的对象
    return <NavLink activeClassName="show" {...this.props} />;
  }
}
